<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <title>我的公开课</title>
    <link href="../c/base.css" rel="stylesheet" type="text/css">
    <link href="../c/toefl.css" rel="stylesheet" type="text/css">
    <link href="../c/bootstrap.min.css" rel="stylesheet" type="text/css">
    <script src="../j/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
    <script src="../user/js/publicClass.js" type="text/javascript" charset="utf-8"></script>
    <script>

        function page(pageNum) {
            $("#pageNum").val(pageNum);
            $("#pageForm").submit();
        }

        function page1(pageNum) {
            $("#pageNum1").val(pageNum);
            $("#pageForm1").submit();
        }

    </script>
</head>

<body>
<div class="doc910 ">
    <div class="flcb_cardMenu">
        <ul>
            <li class="on">
                <a href="#" id="newclass">最新公开课</a>
            </li>
            <li>
                <a href="###" id="desc">听课指南</a>
            </li>
            <li>
                <a href="###" id="myClass">我发布的公开课</a>
            </li>
        </ul>
        <div style="position: absolute;right: 10px;">
            <button type="button" class="btn btn-success " onclick="window.location.href='../toClassRelease'">
                <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 发布
            </button>
        </div>
    </div>


    <!--最新公开课-->
    <div id="newclassContent" >
        <div class="publiclass"  th:each="n,i:${session.newClassInfor.list}">
            <dl >
                <dt>
                    <div class="publiclass_rq">
                        <div class="publiclass_rqD">[[${#dates.format(n.startDate,'dd日')}]]</div>
                        <div class="publiclass_rqM">[[${#dates.format(n.startDate,'MM月')}]]</div>
                    </div>
                    <a href="#" class="publiclass_Pic"><img th:src="${n.imgUrl}" width="270" height="155"></a>
                </dt>
                <dd>
                    <div class="flcb_cardClass">
                        <h3>[[${n.classTitle}]]</h3>
                        <div class="flcb_cardNum"><span>[[${n.signupNum}]]</span>人购买</div>
                    </div>
                    <div class="flcb_cardTime">上课时间：<span>[[${#dates.format(n.startDate,'yyyy-MM-dd')}]]</span>&nbsp;&nbsp;&nbsp;<span
                            class="marginR15">[[${#dates.format(n.startTime,'HH:mm')}]]--[[${#dates.format(n.endTime,'HH:mm')}]]</span>上课地点：<span>[[${n.classMethod}]]</span>
                    </div>
                    <div class="flcb_cardTech">
                        <span class="first">主讲老师：</span><!--th:src="${n.teacher.img_url}"-->
                        <span class="teacherPic"><img th:src="${session.sess_user.img_url}" ></span>
                        <span class="name" th:text="${n.teacher.user_name}"></span>
                        <span class="zan"><a href="###"><img src="../i/icon_zan14x14.jpg"></a></span>
                        <span class="zanNum">(32)</span>
                    </div>
                    <div class="publiclass_Text">
                        <table border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td>课程大纲：</td>
                                <td>[[${n.classDesc}]]</td>
                            </tr>
                        </table>

                    </div>
                    <div class="flcb_cardButton">
                        <a  th:href="@{../toClassDetails(classId=${n.classId},teacher_id=${n.teacher.teacher_id})}" target="_parent">课程明细</a>
                        <a href="../群组聊/组群聊-群聊页.html">进该课程群</a>
                    </div>
                </dd>
            </dl>

        </div>
        <!--分页-->
        <form action="/queryClassInforAll" id="pageForm">
            <!--pageNum值隐藏域-->
            <input type="hidden" name="pageNum" th:value="${classInforPageInfo.pageSize}" id="pageNum"/>
        </form>
        <div class="pageList">
            <ul>
                <li th:each="a:${classInforPageInfo.navigatepageNums}">
                    <a th:onclick="|page(${a})|">[[${a}]]</a>
                </li>
                <li>
                    <a th:onclick="|page(${classInforPageInfo.navigateLastPage})|">最后一页</a>
                </li>
                <li th:if="${classInforPageInfo.isLastPage}">
                    <a th:onclick="|page(${classInforPageInfo.prePage})|" class="pret">上一页</a>
                </li>
                <li th:if="${classInforPageInfo.isFirstPage}">
                    <a th:onclick="|page(${classInforPageInfo.nextPage})|" class="next">下一页</a>
                </li>
            </ul>
        </div>

    </div>

    <!--听课指南-->
    <div id="descContent" style="display: none;">
        <div class="tkzn">
            <div class="tkznH3">人人托福网公开课听课指南</div>
            <div class="tkznBody">
                <p>1、百度搜索YY客户端或者进入www.yy.com上下载YY语音客户端，下载之后安装到电脑上<br>
                    <span>（温馨提示：Mac系统电脑需要安装虚拟机以及双系统才可以）；</span></p>
                <p>2、注册账号，并登陆，如右图所示：</p>
                <div class="tkznPic"><img src="../i/tkzn_1.jpg"></div>
                <p>3、进入8637之后，点击左下角“教室列表”，教室列表展开之后，跟进教室名称双击进入教室即可！<br><span>如下图所示：</span></p>
                <div class="tkznPic"><img src="../i/tkzn_2.jpg"></div>
            </div>
        </div>

    </div>


    <!--我发布的公开课-->
    <div id="myClassContent" style="display: none;">
        <div class="publiclass" th:each="c,l:${classInforPageInfo.list}">
            <dl >
                <dt>
                    <div class="publiclass_rq">
                        <div class="publiclass_rqD">[[${#dates.format(c.startDate,'dd日')}]]</div>
                        <div class="publiclass_rqM">[[${#dates.format(c.startDate,'MM月')}]]</div>
                    </div>
                    <a href="#" class="publiclass_Pic"><img th:src="${c.imgUrl}" width="270" height="155"></a>
                </dt>
                <dd>
                    <div class="flcb_cardClass">
                        <h3>[[${c.classTitle}]]</h3>
                        <div class="flcb_cardNum"><span>[[${c.signupNum}]]</span>人购买</div>
                    </div>
                    <div class="flcb_cardTime">上课时间：<span>[[${#dates.format(c.startDate,'yyyy-MM-dd')}]]</span>&nbsp;&nbsp;&nbsp;<span
                            class="marginR15">[[${#dates.format(c.startTime,'HH:mm')}]]--[[${#dates.format(c.endTime,'HH:mm')}]]</span>上课地点：<span>[[${c.classMethod}]]</span>
                    </div>
                    <div class="flcb_cardTech">
                        <span class="first">主讲老师：</span><!--th:src="${c.teacher.img_url}"-->
                        <span class="teacherPic"><img th:src="${session.sess_user.img_url}" ></span>
                        <span class="name" th:text="${c.teacher.user_name}"></span>
                        <span class="zan"><a href="###"><img src="../i/icon_zan14x14.jpg"></a></span>
                        <span class="zanNum">(666)</span>
                    </div>
                    <div class="publiclass_Text">
                        <table border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td>课程大纲：</td>
                                <td>[[${c.classDesc}]]</td>
                            </tr>
                        </table>

                    </div>
                    <div class="flcb_cardButton">
                        <a  th:href="@{../toClassDetails(classId=${c.classId},teacher_id=${c.teacher.teacher_id})}" target="_parent">课程明细</a>
                        <a th:href="@{../toClassUpdate(classId=${c.classId})}">编辑</a>
                        <a th:href="@{../deleteClassInfo(classId=${c.classId})}">删除</a>
                    </div>
                </dd>
            </dl>

        </div>


        <!--分页-->
        <form action="/queryClassInforAll" id="pageForm1">
            <!--pageNum值隐藏域-->
            <input type="hidden" name="pageNum" th:value="${classInforPageInfo.pageSize}" id="pageNum1"/>
        </form>
        <div class="pageList">
            <ul>
                <li th:each="a:${classInforPageInfo.navigatepageNums}">
                    <a th:onclick="|page1(${a})|">[[${a}]]</a>
                </li>
                <li>
                    <a th:onclick="|page1(${classInforPageInfo.navigateLastPage})|">最后一页</a>
                </li>
                <li th:if="${classInforPageInfo.isLastPage}">
                    <a th:onclick="|page1(${classInforPageInfo.prePage})|" class="pret">上一页</a>
                </li>
                <li th:if="${classInforPageInfo.isFirstPage}">
                    <a th:onclick="|page1(${classInforPageInfo.nextPage})|" class="next">下一页</a>
                </li>
            </ul>
        </div>

    </div>


</div>
</body>

</html>